import {request} from '@/utils/vmeitime-http/index.js'

// // 待选择打卡目标（未完成）【发布页面】
export const userSelectDonateGoal = (data) => {
  return request({
    url: '/cj/web/userSelectDonateGoal',
    method: 'POST',
    data
  })
}

// 发布
export const signDo = (data) => {
	return request({
		url: '/cj/web/signDo',
		method: 'POST',
		data
	})
}

// 图片上传
export const upload = (data) => {
	return request({
		url: '/cj/common/upload',
		method: 'POST',
		data
	})
}

// 用户定的所有目标(tabBar目标)
export const getUserDonateGoal = (data) => {
	return request({
		url: '/cj/web/userDonateGoal',
		method: 'POST',
		data
	})
}

// 目标列表(系统的目标列表，不是个人的目标列表)
export const getWebGoalList = (data) => {
	return request({
		url: '/cj/web/webGoalList',
		method: 'POST',
		data
	})
}

// （系统）目标详情
export const getWebGoalDetail = (data) => {
	return request({
		url: '/cj/web/webGoalDetail',
		method: 'POST',
		data
	})
}

// 用户定目标
export const chooseGoal = (data) => {
	return request({
		url: '/cj/web/chooseGoal',
		method: 'POST',
		data
	})
}

// 点赞
export const clickLike = (data) => {
	return request({
		url: '/cj/web/click',
		method: 'POST',
		data
	})
}

// 举报
export const report = (data) => {
	return request({
		url: '/cj/web/report',
		method: 'POST',
		data
	})
}

// 删除
export const delUserSignRecord = (data) => {
	return request({
		url: '/cj/web/delUserSignRecord',
		method: 'POST',
		data
	})
}

// 目标的打卡记录
export const getWebUserDonateSignRecord = (data) => {
	return request({
		url: '/cj/web/webUserDonateSignRecord',
		method: 'POST',
		data
	})
}

// 用户待捐赠的（未完成的目标）
export const donateGoalBreakPromise = (data) => {
	return request({
		url: '/cj/web/donateGoalBreakPromise',
		method: 'POST',
		data
	})
}

// 提交捐赠截图
export const submitDonateDiploma = (data) => {
	return request({
		url: '/cj/web/submitDonateDiploma',
		method: 'POST',
		data
	})
}

// ta的捐赠
export const TAOtherDonateMoney = (data) => {
	return request({
		url: '/cj/web/otherDonateMoney',
		method: 'POST',
		data
	})
}

// ta的公益项目
export const TAOtherDonateGoalBreakPromise = (data) => {
	return request({
		url: '/cj/web/otherDonateGoalBreakPromise',
		method: 'POST',
		data
	})
}